ifeq ($(TOP_DIR),)
KERNEL_DIR :=$(srctree)
#EXTRA_CFLAGS += -I$(PWD)/drivers/dev_plat/i2c_slave

		
ifeq ($(TARGET_PRODUCT), mini)
EXTRA_CFLAGS += -DUSE_MINI_PLATFORM -DENV_SMMU_SUPPORT -DDVPP_WAKELOCK
endif

obj-m   += drv_i2c.o
drv_i2c-objs := i2c_slave.o
else

ifneq ($(findstring $(PRODUCT),  ascend310 ascend310rc ascend610 ascend710),)
EXTRA_CFLAGS += -DUSE_MINI_PLATFORM -DENV_SMMU_SUPPORT -DDVPP_WAKELOCK
endif

obj-m   += drv_i2c.o
drv_i2c-objs := i2c_slave.o

endif